home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
p4
/
p4-1_2b.lha
/
p4-1.2b
/
alog
/
makefile.proto
< prev
next >
Wrap
Makefile
|
1992-10-19
|
777b
|
43 lines
P4_HOME_DIR = ..
INCLUDEDIR = $(P4_HOME_DIR)/include
LIBDIR = $(P4_HOME_DIR)/lib
LIBS = $(MDEP_LIBS)
LIBLINK = ../bin
ALOG_HDR = alog.h
ALOG_SRC = alog.c alogf.c
ALOG_OBJ = alog.o alogf.o
default:
make libalog.a mergelogs
all:
make libalog.a mergelogs
CFLAGS = -D$(MACHINE)
alog.o:$(P)
$(CC) $(CFLAGS) -I$(INCLUDEDIR) -c alog.c
alogf.o:$(P)
$(CC) $(CFLAGS) -I$(INCLUDEDIR) -c alogf.c
$(ALOG_OBJ): $(ALOG_SRC) $(ALOG_HDR)
libalog.a: $(ALOG_OBJ)
$(AR) $(LIBDIR)/libp4.a $?
$(RANLIB) $(LIBDIR)/libp4.a
# $(AR) $@ $?
# $(RANLIB) $@
mergelogs: alog_evntdfs.h mergelogs.o
$(CC) -o $(LIBLINK)/mergelogs mergelogs.o
adjlogs: alog_evntdfs.h adjlogs.o
$(CC) -o $(LIBLINK)/adjlogs adjlogs.o -lmp
realclean: clean
$(RM) -f libalog.a mergelogs adjlogs Makefile